package com.library.system.modules.emailconfig.service;

import com.library.system.modules.emailconfig.entity.EmailConfig;
import com.library.system.modules.emailconfig.vo.EmailConfigVO;
import com.library.system.modules.emailconfig.bo.EmailConfigPage;
import com.library.system.modules.emailconfig.bo.EmailConfigInsert;
import com.library.system.modules.emailconfig.bo.EmailConfigUpdate;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * @Author xyh
 * @Desc 邮箱配置(EmailConfig)表服务接口
 * @Date 2023-09-24 16:14:28
 */
public interface EmailConfigService extends IService<EmailConfig> {

    /**
     * 分页查询
     */
    List<EmailConfigVO> emailConfigList();

    /**
     * 根据ID查详情
     */
    EmailConfigVO queryById(Integer id);

    /**
     * 新增数据
     */
    boolean insert(EmailConfigInsert emailConfigInsert);

    /**
     * 修改数据
     */
    boolean update(EmailConfigUpdate emailConfigUpdate);

    /**
     * 通过主键删除数据
     */
    boolean deleteById(Integer id);

    /**
     * 获取发送的邮箱
     * @return
     */
    EmailConfig getSendEmail();

}
